package cn.kxm.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.kxm.pojo.Role;
import cn.kxm.pojo.Sysuser;

public interface AdministratorMapper {
    public List<Map<String,Object>> findAdministratorList(@Param("userName") String userName,@Param("dangqianye") Integer pageNo,@Param("size") Integer pageSize);
    public int getAdministratorCount(@Param("userName") String userName);
    public List<Role> getRoles();
    public Sysuser findAdministratorByUserName(@Param("userName") String userName);
    public int addAdministrator(@Param("sysuser") Sysuser sysuser);
    public Map<String, Object> getAdministratorById(@Param("id") Integer id);
    public int updateAdministrator(@Param("sysuser") Sysuser sysuser);
    public int delAdministrator(@Param("id") Integer id);
}
